<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
// API 模板文件，可以复制
namespace api\resource\controller;

use think\Db;
use think\Request;
use think\Validate;
use cmf\controller\RestBaseController;

class Biao23Controller extends RestBaseController
{


    public function one($data)
    {

        //查 这个表的数据
        @$new_data = $data[0]['content'];
        if (empty($new_data)) {
            return '';
        }
       $html = '
        <div style="width: 650px;margin: 0 auto;">
            <div style="font-size: 16px;font-weight: 600;margin-bottom: 15px;">一、申报单位基本情况</div>
            <table border="1" cellspacing="0px" cellpadding="5px" width="650">
                <tbody>
                    <tr>
                        <td>单位名称</td>
                        <td>'.@$new_data->text1.'</td>
                        <td colspan="2">统一社会信用代码或组织机构代码</td>
                        <td colspan="2">'.@$new_data->text2.'</td>
                    </tr>
                    <tr>
                        <td>注册时间</td>
                        <td>'.@$new_data->text3.'</td>
                        <td>注册资金（万元）</td>
                        <td>'.@$new_data->text4.'</td>
                        <td>单位类型</td>
                        <td>'.@$new_data->text5.'</td>
                    </tr>
                    <tr>
                        <td>注册地点</td>
                        <td colspan="5">'.@$new_data->text6.'</td>
                    </tr>
                    <tr>
                        <td>办公地址</td>
                        <td colspan="5">'.@$new_data->text7.'</td>
                    </tr>
                    <tr>
                        <td rowspan="5">联 系 人</td>
                        <td>姓名</td>
                        <td colspan="4">'.@$new_data->text8.'</td>
                    </tr>
                    <tr>
                        <td>职务</td>
                        <td colspan="4">'.@$new_data->text9.'</td>
                    </tr>
                    <tr>
                        <td>办公电话</td>
                        <td colspan="4">'.@$new_data->text10.'</td>
                    </tr>
                    <tr>
                        <td>手机号码</td>
                        <td colspan="4">'.@$new_data->text11.'</td>
                    </tr><tr>
                        <td>电子邮箱</td>
                        <td colspan="4">'.@$new_data->text12.'</td>
                    </tr>
                </tbody>
            </table>
        </div>
        ';

            return $html;

    }



}
